<script src="assets/js/user_validate.js" type="text/javascript" charset="utf-8"></script>
<?php

include 'm/user/c_admin_user.php';


printformheader('User Information',$_GET['cmd']);
begin_form($_GET['cmd'],$id);

$o['label']='First Name';
p_input('serial_first_name',$o,$e);

$o['label']='Last Name';
p_input('serial_last_name',$o,$e);



if($_GET['cmd']=='add')
{

	
		$o['label']='Password';
		$o['password']=TRUE;
		p_input('user_password',$o,$e);

		$o['label']='Confirm';
		p_input('confirm_password',$o,$e);
		$o['password']=FALSE;
	}

	$o['label']='Email';
	p_input('user_email',$o,$e);

$o['label']='Address Line 1';
p_input('serial_user_address',$o,$e);

$o['label']='Address Line 2';
p_input('serial_user_address_1',$o,$e);

$o['label']='City ';
p_input('serial_user_city',$o,$e);

$o['label']='State';
p_input('serial_user_state',$o,$e);

$o['label']='Postcode';
p_input('serial_user_zip',$o,$e);

$o['label']='Level';
p_input('user_level',$o,$e);

$o['label']='Is active? 1 yes 0 no';
p_input('user_confirm',$o,$e);


$o['label']='Telephone';
p_input('serial_user_mobile',$o,$e);


include 'b/autofilluser.php';


$o['label']='user_name';
p_input('user_name',$o,$e);

printsubmit("Save");
end_form($_GET['cmd']);


printformfooter("Change Password","index.php","Users Page","index.php?q=m/user/v_users.php",NULL,NULL);

?>

